import { Document } from "@langchain/core/documents";

const doc = new Document({
  pageContent: "这是一段测试文字",
  metadata: {
    source: "abc",
  },
});

console.log(doc)